from typing import Union

from pydantic import BaseModel

class alertmode(BaseModel):
    receiver: str
    status: str
    alerts: list=[]
    groupLabels: dict={}
    commonLabels: dict={}
    commonAnotations: dict={}
    externalURL: str
    version: str
    groupKey: Union[str,None]=None
    truncatedAlerts: Union[int,None]=None


